<?php
/**
 * Created by PhpStorm.
 * User: cc
 * Date: 2024/7/11
 * Time: 10:55
 */

namespace app\web\controller;

use think\Controller;
use think\Env;
use think\Request;

class App extends Controller
{

    public function __construct(Request $request = null)
    {
        parent::__construct($request);
        $oss = Env::get('host.photo');
        $host = Env::get('host.domain');
        $this->assign('oss', $oss);
        $this->assign('host', $host);
    }

    /**
     * 关于我们
     * @return void
     */
    public function aboutMe()
    {
        return $this->fetch();
    }

    /**
     * 备案信息
     * @return void
     */
    public function filingInfo()
    {
        $list = [
            [
                'APP备案号',
                '京ICP备15043309号-13A',
                'https://beian.miit.gov.cn/'
            ],
            [
                '算法名称',
                '一语大模型文本生成算法',
                'https://beian.cac.gov.cn/#/home'
            ],
            [
                '算法备案号',
                '网信算备110105912915401240011号',
                'https://beian.cac.gov.cn/#/home'
            ],
        ];
        return $this->fetch('filing_info', ['list' => $list]);
    }
}
